Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Resolve invalid SSID of access point for Wi-Fi config #1

Merged
merged 1 commit into from
Jul 17, 2020

Conversation

marcullo
Copy link
Member

Related to jasbur#88

@marcullo marcullo force-pushed the fix/ssid branch 2 times, most recently from 293dac3 to 4681884 Compare July 16, 2020 10:23
@marcullo marcullo merged commit 3e0482c into master Jul 17, 2020
@marcullo marcullo deleted the fix/ssid branch July 17, 2020 09:17
@BramWerbrouck
Copy link

So this should be the solution on jasbur#88 ssid is not displaying last 4 serial? I already installed the version of jasbur/RaspiWIFi , how can I update so my access point is show like “MY_NETWORK1234” (where 1234 stands for the last 4 numbers of the serial of my raspberry pi) instead of “MY_NETWORK 1.1” ?

@marcullo
Copy link
Member Author

marcullo commented Sep 7, 2021

@BramWerbrouck If your /proc/cpuinfo file contains other stuff than serial number at the end, the result of

subprocess.check_output(['cat', '/proc/cpuinfo'])[-5:-1]

proposed by the jasbur does not contain last four bytes of serial. I applied more careful code which takes the serial number based on line regex match: ^Serial\s*:\s*(\w+)$ so if any additional lines follow that line, it would still be fine.

You can apply the diff of this PR to your code on your own.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants